'use strict';

const db = uniCloud.database();
const add_db = db.collection('appointment');
exports.main = async (event, context) => {

	let res = await add_db.where({
		user:event.user,
	}).get();
	return res;
	//return event;
};